package com.hcb.micro.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcb.micro.dao.interfaceClass.DistrictMapper;
import com.hcb.micro.dto.District;
import com.hcb.micro.service.IDistrictService;

@Service("DistrictService")
public class DistrictServiceImpl implements IDistrictService {

	@Autowired
	DistrictMapper distictMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return distictMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(District record) {
		return distictMapper.insert(record);
	}

	@Override
	public int insertSelective(District record) {
		return distictMapper.insertSelective(record);
	}

	@Override
	public District selectByPrimaryKey(Integer id) {
		return distictMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(District record) {
		return distictMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(District record) {
		return distictMapper.updateByPrimaryKey(record);
	}

	@Override
	public District selectByDistrictId(Integer districtId) {
		return distictMapper.selectByDistrictId(districtId);
	}

	@Override
	public List<District> selectByCityId(Integer cityId) {
		return distictMapper.selectByCityId(cityId);
	}

	@Override
	public List<District> selectAll() {
		return distictMapper.selectAll();
	}

}
